package com.hn.gege.im.modules.im.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 未读聊天消息
 * </p>
 *
 * @author zxy
 * @since 2021-10-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("im_chat_message_unread")
@ApiModel(value="ChatMessageUnread对象", description="未读聊天消息")
public class ChatMessageUnread implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "消息id")
    @TableId(value = "msg_id", type = IdType.AUTO)
    private Long msgId;

    @ApiModelProperty(value = "发送人账号")
    private String sender;

    @ApiModelProperty(value = "接收者账号")
    private String receiver;

    @ApiModelProperty(value = "消息类型(普通消息/系统通知)")
    private String action;

    @ApiModelProperty(value = "消息标题")
    private String title;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "消息格式(图片/文本/语音/视频)")
    private String format;

    @ApiModelProperty(value = "消息发送时间")
    private Date timestamp;



}
